package com.hhss.qishi.DPtest.designpattern.strategy;

/**
 * 鸭子超类
 */
public class Duck {

    FlyBehavior flyBehavior;

    public void performFly(){
        flyBehavior.fly();
    }

    public void setFlyBehavior(FlyBehavior flyBehavior) {
        this.flyBehavior = flyBehavior;
    }
}
